
    /**  
    * @Title: CheYingUtil.java
    * @Package com.third.utils.cheying
    * @Description: 
    * @author likai
    * @date 2018年10月15日
    * @version V1.0  
    */
    
package com.third.utils.cheying;

import java.util.HashMap;
import java.util.Map;

import com.supers.enums.Charset;
import com.utils.http.HttpClientUtil;

/**
    * @ClassName: CheYingUtil
    * @Description: 车盈工具类
    * @author likai
    * @date 2018年10月15日
    *
    */
@SuppressWarnings("unchecked")
public class CheYingUtil {

	public static void main(String[] args) throws Exception {
		test4();
		//test1();
		//test2();
		//test3();
	}
	//添加线索
	public static void test4() throws Exception {
		//String url="https://wechat.jbsjbs.com/wechat/auth/event";
		String url="https://tservice.jbsjbs.com/store/shrbank/settlement/callback/service?orderId=4163236683863943775";
		
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("signature", "李凯");
		map.put("timestamp", "13062595431");
		map.put("nonce", "1");
		map.put("encrypt_type", "xujies");
		map.put("msg_signature", "1");
		String result=(String) HttpClientUtil.httpJson.getClient(url, Charset.UTF8, String.class);
		System.out.println(result);
		//String data= (String) HttpClientUtil.httpJson.getClient(url,Charset.UTF8, String.class);
		//System.out.println(data);
	}
	//添加线索
	public static void test1() throws Exception {
		String domain="http://192.168.40.24:7076/";
		String url=domain+"api/PotentialBuySellerV1/PotentialSellerAddV1";
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("UserName", "李凯");
		map.put("Phone", "13062595431");
		map.put("IncomingT", "1");
		map.put("CurrentUserID", "xujies");
		map.put("Other", "1");
		map.put("subID", "cs0001");
		map.put("regionID", "scs001");
		map=(Map<String, Object>) HttpClientUtil.httpJson.postClient(url, map, Charset.UTF8, Map.class);
	}
	//查询线索列表
	public static void test2() throws Exception {
		String domain="http://usedcar.96056.com.cn:6065/webapi/";
		String url=domain+"api/PotentialBuySellerV1/GetMobilePotentialSellerListV2";
		Map<String, Object> map=new HashMap<String, Object>();
		Map<String, Object> map2=new HashMap<String, Object>();
		map2.put("CurrentUserID", "xujie");
//		map2.put("RegionID", "d1");
//		map2.put("SubID", "c1");
		map.put("QueryModel", map2);
		map.put("PageNo", "1");
		map.put("PageSize", "10");
		map=(Map<String, Object>) HttpClientUtil.httpJson.postClient(url, map, Charset.UTF8, Map.class);
	}
	//查询线索详情
	public static void test3() throws Exception {
		String domain="http://usedcar.96056.com.cn:6065/webapi/";
		String url=domain+"api/PotentialBuySellerV1/GetPotentialGuestSellerByPIDV1";
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("PID", "3070");
		map.put("CurrentUserID", "xujie");
		map=(Map<String, Object>) HttpClientUtil.httpJson.postClient(url, map, Charset.UTF8, Map.class);
	}
}
